﻿using HiSport.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entity.HiSportEntity.Bas
{


    /// <summary>
    /// 计费规则详情
    /// </summary>
    [SugarTable(null, "场地规则计费规则详情")]
    public class BasSiteBillingRule : EntityBase
    {
        /// <summary>
        /// 计费规则主Id
        /// </summary>
        [SugarColumn(ColumnDescription = "计费规则主Id", DefaultValue = "0", IsNullable = false)]
        public long BillingRuleId { get; set; }

        /// <summary>
        /// 场地类型ID
        /// </summary>
        [SugarColumn(ColumnDescription = "场地类型ID", DefaultValue = "0", IsNullable = false)]
        public long SiteId { get; set; }


        /// <summary>
        /// 星期
        /// </summary>
        [SugarColumn(ColumnDescription = "星期", DefaultValue = "[]", IsNullable = false)]
        public string Weeks { get; set; }

        /// <summary>
        /// 权重
        /// </summary>
        [SugarColumn(ColumnDescription = "权重", DefaultValue = "0", IsNullable = false)]
        public int Sort { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnDescription = "状态", IsNullable = false)]
        public StatusEnum Status { get; set; } = StatusEnum.Enable;

    }
}
